#ifndef WRITETHREAD_H
#define WRITETHREAD_H

#include <QThread>
#include <QReadWriteLock>

class WriteThread : public QThread
{
public:
    WriteThread(QReadWriteLock * lock);
protected:
    virtual void run() override;
public:
    inline void setStop(){stop = true;}
private:
    QReadWriteLock *readWriteLock;
    bool stop = false;
};

#endif // WRITETHREAD_H
